<template>
  <h1>Hello Vue3</h1>
  <h2>工资：{{ salary }}</h2>
  <button @click="addBtn(1000)">加油~</button>
</template>

<script>
export default {
  data() {
    return {
      salary: 10000,
    }
  },
  methods: {
    addBtn(val) {
      this.salary += val;
    },
  },
}
</script>
